import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router';
import HomeView from '../views/HomeView.vue';

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/upload',
      name: 'upload',
      component: () => import('../views/UpLoadView.vue'),
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/LoginView.vue'),
    },
    {
      path: '/myupload',
      name: 'myupload',
      component: () => import('../views/MyUploadView.vue'),
    },
    {
      path: '/mydownload',
      name: 'mydownload',
      component: () => import('../views/MyDownloadView.vue'),
    },
    {
      path: '/series',
      name: 'series',
      component: () => import('../views/SeriesView.vue'),
    },
    {
      path: '/export',
      name: 'export',
      component: () => import('../views/Export.vue'),
    },
  ],
});

export default router;
